<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Option_type')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-option_type" data-rule="required" class="form-control selectpicker" name="row[option_type]">
                {foreach name="optionTypeList" item="vo"}
                    <option value="{$key|htmlentities}" {in name="key" value="$row.option_type"}selected{/in}>{$vo|htmlentities}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text" value="{$row.name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Min')}:</label>
        <div class="col-xs-6 col-sm-4">
            <input id="c-min" placeholder="填写正整数" data-rule="required" data-target="#min-error" class="form-control" name="row[min]" type="number" value="{$row.min|htmlentities}">
        </div>
        <div class="form-control-static">
            <span class="unit">元</span>
            <span id="min-error"></span>
        </div>

    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Max')}:</label>
        <div class="col-xs-6 col-sm-4">
            <input placeholder="填写正整数,不设上限留空" id="c-max" data-rule="salary_max" data-msg-salary_max="上限必须大于下限" data-target="#max-error" class="form-control" name="row[max]" type="number" value="{$row.max>0?:''}">
        </div>
        <div class="form-control-static">
            <span class="unit">元</span>
            <span id="max-error"></span>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
